/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mantechhelpdesk.entity;

import java.io.Serializable;

/**
 *
 * @author DinhThang
 */
public class Departments implements Cloneable, Serializable {

    /**
     * Persistent Instance variables. This data is directly mapped to the
     * columns of database table.
     */
    private int departmentID;
    private String departmentName;
    private boolean isEnable;

    /**
     * Constructors. DaoGen generates two constructors by default. The first one
     * takes no arguments and provides the most simple way to create object
     * instance. The another one takes one argument, which is the primary key of
     * the corresponding table.
     */
    public Departments() {
    }

    public Departments(int DepartmentIDIn) {

        this.departmentID = DepartmentIDIn;

    }

    /**
     * Get- and Set-methods for persistent variables. The default behaviour does
     * not make any checks against malformed data, so these might require some
     * manual additions.
     */
    public int getDepartmentID() {
        return this.departmentID;
    }

    public void setDepartmentID(int DepartmentIDIn) {
        this.departmentID = DepartmentIDIn;
    }

    public String getDepartmentName() {
        return this.departmentName;
    }

    public void setDepartmentName(String DepartmentNameIn) {
        this.departmentName = DepartmentNameIn;
    }

    public boolean getIsEnable() {
        return this.isEnable;
    }

    public void setIsEnable(boolean IsEnableIn) {
        this.isEnable = IsEnableIn;
    }

    /**
     * setAll allows to set all persistent variables in one method call. This is
     * useful, when all data is available and it is needed to set the initial
     * state of this object. Note that this method will directly modify instance
     * variales, without going trough the individual set-methods.
     */
    public void setAll(int DepartmentIDIn,
            String DepartmentNameIn,
            boolean IsEnableIn) {
        this.departmentID = DepartmentIDIn;
        this.departmentName = DepartmentNameIn;
        this.isEnable = IsEnableIn;
    }

    public Departments(int DepartmentIDIn,
            String DepartmentNameIn,
            boolean IsEnableIn) {
        this.departmentID = DepartmentIDIn;
        this.departmentName = DepartmentNameIn;
        this.isEnable = IsEnableIn;
    }
}
